const getHomePic = async (ctx, next) => {
  const { name } = ctx.query;
  ctx.body = {
    code: 200,
    message: '请求成功',
    data: [
      { id: 1, src: 'https://th.bing.com/th/id/OIP.9KougOtbPTAeWTtczW-CXAHaEK?w=279&h=180&c=7&r=0&o=5&dpr=2&pid=1.7' },
      { id: 2, src: 'https://th.bing.com/th?id=OIP.jl4pPK40IUmDL_-Wu0yMqgHaEK&w=333&h=187&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2' },
      { id: 3, src: 'https://th.bing.com/th?id=OIP.DIvzbgmWVKra9fEn7xo_GwHaEo&w=316&h=197&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2' },
      { id: 4, src: 'https://th.bing.com/th?id=OIP.duz6S7Fvygrqd6Yj_DcXAQHaF7&w=279&h=223&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2' },
      { id: 5, src: 'https://th.bing.com/th/id/OIP.y2S_hCUJZUxkpvfIt31UZAHaER?w=294&h=180&c=7&r=0&o=5&dpr=2&pid=1.7' }
    ]
  }
  return next();
};

module.exports = {
  'GET /homePic': getHomePic
};